﻿package com.webdesign.service;

import java.util.List;
import com.webdesign.dto.HomeworkInfoDTO;
import com.webdesign.dto.ModifyHomeworkDTO;
public interface ITbHomeworkService {
	/*
	 * 显示某学年某教师的所有作业
	 */
	public abstract List<HomeworkInfoDTO> showHomework(String termid,String teacherid);

	/*
	 * 老师发布作业
	 */
	public abstract Boolean submitHomework(String title, String description,
			String starttime, String endtime, String graded, String termid,String teacherid);

	/*
	 * 根据作业编号获取作业详情(老师修改作业信息页面)
	 */
	public abstract ModifyHomeworkDTO getHomeworkinfo(String homeworkid);

	/*
	 * 老师修改发布过的作业信息
	 */
	public abstract Boolean modifyHomework(String homeworkid, String title,
			String description, String starttime, String endtime,
			String graded);
	/*
	 * 老师删除作业
	 */
	public abstract Boolean delateHomework(String homeworkid);

	/*
	 * 学生查看作业详情
	 */

	public abstract HomeworkInfoDTO checkDetail(String homeworkid);


	/*
	 * 显示所有已发布作业信息
	 */

	public abstract List<HomeworkInfoDTO> showAllHomeworks();


	/*
	 * 管理员根据条件查看已发布作业信息
	 */
	
	public abstract List<HomeworkInfoDTO> checkHomeworks(String username,String termname);
}
